﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class ucConnectUs : System.Web.UI.UserControl
{
    protected string sContent;
    protected void Page_Load(object sender, EventArgs e)
    {

        if (Request.Url.AbsolutePath.ToLower().Contains("default.aspx"))
            divConthome.Attributes.Add("class", "conthome1");
        
        if (Request.Url.AbsolutePath.ToLower().Contains("tourism.aspx"))
            divConthome.Attributes.Add("class", "conthome1T");

        DataTable DT = Dal.ExecuteDBsp("usp_DefaultProperties", null);
        if (DT != null)
            if (DT.Rows.Count > 0)
            {
                sContent = DT.Rows[0]["conectUS"].ToString();
            }
    }
}
